package com.situ.mall.notification.api.service;


import com.mall.common.util.JsonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value="mall-gateway",contextId = "notification-user-api")
public interface UserFeignService {
    //查询对应类型的所有没有被禁用的用户的ids
    @GetMapping("/api/user/type/{type}")
    ResponseEntity<JsonResult<?>> getAlertUsers(@PathVariable Integer type);
}
